package javango.forms.widgets;

import java.util.Map;

import javango.forms.fields.ChoiceField;

/**
 * Widget representing choices the user can select,  the widget should first check to see if a Map of choices has been passed,  
 * if not it should ask the ChoiceField for a Map of choices.  This allows fields that have expensive Maps (ie db driven) to
 * wait until the latest possible time to retrieve the Map
 *   
 * @author johns
 *
 */
public interface ChoicesWidget {

	Map<String, Object> getChoices();
	void setChoices(Map<String, Object> choices);
	
	ChoiceField getField();
	void setField(ChoiceField field);
	
}
